<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>BrainTrain: header/AddPortalGunInteractionCallback.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">BrainTrain
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_add_portal_gun_interaction_callback_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">AddPortalGunInteractionCallback.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_add_portal_gun_interaction_callback_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &lt;osg/NodeCallback&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;osgViewer/Viewer&gt;</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;../header/BaseInteractionCallback.h&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">namespace </span>brtr {</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="classbrtr_1_1_add_portal_gun_interaction_callback.html">   14</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html">AddPortalGunInteractionCallback</a> : <span class="keyword">public</span> <a class="code" href="classbrtr_1_1_base_interaction_callback.html">BaseInteractionCallback</a> {</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html#a849f25b53c2a3c81e8201777bf481c96">AddPortalGunInteractionCallback</a>(osg::Node* weaponHUD, osg::Camera* hudCam, osg::Switch* switcher, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="comment">//doc in parent</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html#aa0db50622c7ae1cd25f8554c916137db">setText</a>();</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html#a9b6571b0295f7e12425b57ff0262dbd4">interact</a>(osg::Node*, osg::NodeVisitor*);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classbrtr_1_1_add_portal_gun_interaction_callback.html#ac110a98cbe720e599b344d9940702597">   32</a></span>&#160;        osg::ref_ptr&lt;osg::Switch&gt; <a class="code" href="classbrtr_1_1_add_portal_gun_interaction_callback.html#ac110a98cbe720e599b344d9940702597">_switcher</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    };</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;}</div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html_aa0db50622c7ae1cd25f8554c916137db"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html#aa0db50622c7ae1cd25f8554c916137db">brtr::AddPortalGunInteractionCallback::setText</a></div><div class="ttdeci">virtual void setText()</div><div class="ttdoc">sets the text on screen. Subclasses must override to set its own (info)text </div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8cpp_source.html#l00009">AddPortalGunInteractionCallback.cpp:9</a></div></div>
<div class="ttc" id="classbrtr_1_1_base_interaction_callback_html"><div class="ttname"><a href="classbrtr_1_1_base_interaction_callback.html">brtr::BaseInteractionCallback</a></div><div class="ttdoc">This is the TemplateClass for InteractionCallbacks. </div><div class="ttdef"><b>Definition:</b> <a href="_base_interaction_callback_8h_source.html#l00024">BaseInteractionCallback.h:24</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html">brtr::AddPortalGunInteractionCallback</a></div><div class="ttdoc">InteractionCallback for adding the portal gun to the players inventar. </div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8h_source.html#l00014">AddPortalGunInteractionCallback.h:14</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html_ac110a98cbe720e599b344d9940702597"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html#ac110a98cbe720e599b344d9940702597">brtr::AddPortalGunInteractionCallback::_switcher</a></div><div class="ttdeci">osg::ref_ptr&lt; osg::Switch &gt; _switcher</div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8h_source.html#l00032">AddPortalGunInteractionCallback.h:32</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html_a849f25b53c2a3c81e8201777bf481c96"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html#a849f25b53c2a3c81e8201777bf481c96">brtr::AddPortalGunInteractionCallback::AddPortalGunInteractionCallback</a></div><div class="ttdeci">AddPortalGunInteractionCallback(osg::Node *weaponHUD, osg::Camera *hudCam, osg::Switch *switcher, int width, int height)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8cpp_source.html#l00005">AddPortalGunInteractionCallback.cpp:5</a></div></div>
<div class="ttc" id="classbrtr_1_1_add_portal_gun_interaction_callback_html_a9b6571b0295f7e12425b57ff0262dbd4"><div class="ttname"><a href="classbrtr_1_1_add_portal_gun_interaction_callback.html#a9b6571b0295f7e12425b57ff0262dbd4">brtr::AddPortalGunInteractionCallback::interact</a></div><div class="ttdeci">virtual void interact(osg::Node *, osg::NodeVisitor *)</div><div class="ttdoc">the interaction logic must be implemented be the children in this method </div><div class="ttdef"><b>Definition:</b> <a href="_add_portal_gun_interaction_callback_8cpp_source.html#l00013">AddPortalGunInteractionCallback.cpp:13</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_1ec98ce50fa6ec55b40b8ffb1df38c3c.html">header</a></li><li class="navelem"><a class="el" href="_add_portal_gun_interaction_callback_8h.html">AddPortalGunInteractionCallback.h</a></li>
    <li class="footer">Generated on Thu Jul 17 2014 01:40:24 for BrainTrain by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
